import request from '@/utils/request'

// 查询CTF实验环境实例列列表
export function listCtfexample(query) {
  return request({
    url: '/experiment/ctfexample/list',
    method: 'get',
    params: query
  })
}

// 查询CTF实验环境实例列详细
export function getCtfexample(ctfEnvironmentExampleId) {
  return request({
    url: '/experiment/ctfexample/' + ctfEnvironmentExampleId,
    method: 'get'
  })
}

// 新增CTF实验环境实例列
export function addCtfexample(data) {
  return request({
    url: '/experiment/ctfexample',
    method: 'post',
    data: data
  })
}

// 修改CTF实验环境实例列
export function updateCtfexample(data) {
  return request({
    url: '/experiment/ctfexample',
    method: 'put',
    data: data
  })
}

// 删除CTF实验环境实例列
export function delCtfexample(ctfEnvironmentExampleId) {
  return request({
    url: '/experiment/ctfexample/' + ctfEnvironmentExampleId,
    method: 'delete'
  })
}
